package com.paramete;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class MyParammete01 {
    public static void main(String[] args) {
        //method1();
        //method2();
        //method3();
        //method4();
        //method5();
    }

    private static void method5() {
        Map<String,String> entry = Map.ofEntries(Map.entry("张三","北京"),Map.entry("李四","上海"));
        System.out.println(entry);
    }

    private static void method4() {
        //快速构建list,不依赖JDK9
        List<String> list = Arrays.asList("a", "b", "c", "d");
        System.out.println(list);
    }

    private static void method3() {
        Set<String> set = Set.of("a","b","c","d");
        System.out.println(set);
    }

    private static void method2() {
        Map<String, Integer> map = Map.of("张三",21,"李四",23);
        System.out.println(map);
    }

    private static void method1() {
        List<String> list=List.of("a","b","c","d");
        System.out.println(list);
    }
}
